<!DOCTYPE html>
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
    <form th:action="@{/login}" method="post">
        <label>
            <input type="text" name="username" placeholder="请输入账号" />
        </label>
        <label>
            <input type="password" name="password" placeholder="请输入密码" />
        </label>
        <button type="submit">登录</button>
    </form>
    <div th:if="${param.error}">错误的密码</div>
</body>
</html>